﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true"
    CodeFile="TimKiemTour.aspx.cs" Inherits="Tour_TimKiemTour" %>

<%@ Register Assembly="PagerControl" Namespace="CutePager" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>Tìm Kiếm Tour - <%= Common.title %></title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div id="border">
    <div style="float: right;" class="timkiemtextbox">
        <div style="float: left">
            <asp:TextBox ID="txtTuKhoa" runat="server" Width="220px" CssClass="timkiemnoidung"
                BorderWidth="0" value="Nhập từ khóa cần tìm" onblur="if(this.value=='') this.value='Nhập từ khóa cần tìm';"
                onfocus="if(this.value=='Nhập từ khóa cần tìm') this.value='';" Text="Nhập từ khóa cần tìm"></asp:TextBox>
        </div>
        <div style="float: right">
            <asp:ImageButton ID="cmdSearch" runat="server" ImageUrl="~/images/dltn/searchIcon.png"
                CssClass="btnSearch" Width="22px" Height="19px" OnClick="cmdSearch_Click" />
        </div>
    </div>
    <div class="nenTimKiem">
        Ket qua tim kiem</div>

    <div id="Content">
        <div id="titNavigation3">
            <div style="height: auto; text-align: justify; padding: 5px;">
                <asp:DataList ID="dlTimKiem" runat="server" RepeatColumns="1" RepeatDirection="Horizontal"
                    RepeatLayout="Flow" Width="100%">
                    <ItemTemplate>
                        <div style="border-bottom: 2px dotted #ccc;">
                            <div style="float: left; margin-right: 8px; font-weight: bold; width: 80px;">
                                <asp:HyperLink runat="server" ID="linkTieuDe" CssClass="TinTucRight" NavigateUrl='<%# "~/" + Eval("Id") + "_" + Eval("IdSubTour") + "_" + GetTieuDe(Eval("TieuDe")) + "_Tour.aspx" %>'>
                                    <asp:Image ID="ImageAnhdaiDien" runat="server" Style="padding-right: 5px;" BorderStyle="None"
                                        Width="80px" Height="80px" ImageUrl='<%# "~/Upload/Tour/" + Eval("AnhDaiDien")%>' />
                                </asp:HyperLink>
                            </div>
                            <div style="margin-right: 8px; color: Black; font-weight: normal; float: left; width:530px;">
                                <asp:HyperLink runat="server" ID="HyperLink1" CssClass="TinTucRight" NavigateUrl='<%# "~/" + Eval("Id") + "_" + Eval("IdSubTour") + "_" + GetTieuDe(Eval("TieuDe")) + "_Tour.aspx" %>'>
                                <%# Eval("TieuDe") %>:
                                </asp:HyperLink>
                                <%# Eval("TomTat").ToString().Length <= 200 ? Eval("TomTat") : Eval("TomTat").ToString().Substring(0,200) + "..." %>
                            </div>
                            <div style="clear: both; mardin: 0px;">
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:DataList>
            </div>
            <div style="float: right; margin-top: -10px">
                <div class="nav-head-tc" style="color: Maroon; font-weight: bold">
                    <cc1:Pager ID="Pager1" runat="server" PreviousClause="Lùi" NextClause="Tiến" LastClause=""
                        FirstClause="" PageClause="<html><b>Trang </b></html>" ShowResultClause="Hiển thị từ"
                        ShowingResultClause="Đang hiển thị từ" BackToPageClause="Quay lại trang" OfClause=" /"
                        PageSize="7" OnCommand="Pager1_Command" ForeColor="#CC0000" Font-Bold="True" />
                </div>
            </div>
        </div>
    </div>
    <div id="Right">
    </div>
    <div style="clear:both"></div>   
</div> 
</asp:Content>
